//
//  HJChatUserModel.h
//  KaiChat
//
//  Created by lx on 2023/10/20.
//

#import <Foundation/Foundation.h>


NS_ASSUME_NONNULL_BEGIN

@class HJChatFriendModel;

@interface HJChatUserModel : NSObject


@property (nonatomic, copy) NSString *userId;
@property (nonatomic, copy, nullable) NSString *sessionId;
@property (nonatomic, assign, readonly) BOOL isFridend;
@property (nonatomic, copy) NSString *avatar;
@property (nonatomic, copy) NSString *nickname;
@property (nonatomic, copy) NSString *remarks;
@property (nonatomic, copy) NSString *brief;
@property (nonatomic, copy) NSString *uid;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, assign) NSInteger gender;//1,男, 2女

// 同步搜索接口的关系 （-1:非好友 0:自身 1:好友 2:申请中 3:好友申请已过期)
@property (nonatomic, assign) NSInteger relationship;
// 1 主动请求 2 被请求
@property (nonatomic, assign) NSInteger way;
@property (nonatomic, copy, readonly) NSString *showName;

+ (HJChatUserModel *)modelWithDict:(NSDictionary *)dict;
+ (HJChatUserModel *)modelWithFriendModel:(HJChatFriendModel *)friendModel;
+ (HJChatUserModel *)modelWithBlock:(void (^)(HJChatUserModel *model))block;

@end

NS_ASSUME_NONNULL_END
